package com.ktgj.service.mapper;

import java.util.List;
import com.ktgj.service.domain.OrderVipchannel;
import com.ktgj.service.domain.Vipchannel;
import com.ktgj.service.domain.vo.VipchannelOrederParameterVo;
import org.apache.ibatis.annotations.Param;

/**
 * VIP通道订单
Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
public interface OrderVipchannelMapper 
{
    /**
     * 查询VIP通道订单

     * 
     * @param ordervipchannelId VIP通道订单
ID
     * @return VIP通道订单

     */
    public OrderVipchannel selectOrderVipchannelById(Long ordervipchannelId);

    /**
     * 查询VIP通道订单
列表
     * 
     * @param orderVipchannel VIP通道订单

     * @return VIP通道订单
集合
     */
    public List<OrderVipchannel> selectOrderVipchannelList(OrderVipchannel orderVipchannel);

    /**
     * 新增VIP通道订单

     * 
     * @param orderVipchannel VIP通道订单

     * @return 结果
     */
    public int insertOrderVipchannel(OrderVipchannel orderVipchannel);

    /**
     * 修改VIP通道订单

     * 
     * @param orderVipchannel VIP通道订单

     * @return 结果
     */
    public int updateOrderVipchannel(OrderVipchannel orderVipchannel);

    /**
     * 删除VIP通道订单

     * 
     * @param ordervipchannelId VIP通道订单
ID
     * @return 结果
     */
    public int deleteOrderVipchannelById(Long ordervipchannelId);

    /**
     * 批量删除VIP通道订单

     * 
     * @param ordervipchannelIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderVipchannelByIds(Long[] ordervipchannelIds);

    /**
     *
     * @param ordervipchannelId 快速通道详情
     * @return
     */
    public List<OrderVipchannel> select(Long ordervipchannelId);

    /**
     * 服务信息展示
     * @param vipchannelId
     * @return
     */
    public Vipchannel serviceInformation(Long vipchannelId);

    public List<OrderVipchannel> selectOrdervipchannel();

    /**
     * VIP通道收银台
     * @param orderNumber
     * @return
     */
    public OrderVipchannel cashier(Long orderNumber);

    /**
     * 查询当前用户全部订单
     * */
    public OrderVipchannel selectOrderVipchannelByCustomerIdAndOrdervipchannelId(@Param("cardNumber") String cardNumber,
                                                                                       @Param("ordervipchannelId") Long ordervipchannelId);
    /**
     * 支付成功页面
     * @param ordervipchannelId
     * @return
     */
    public OrderVipchannel selectOrderVipchannelNumber(Long ordervipchannelId);

    public List<OrderVipchannel> queryVipchannelTrip(Long ordervipchannelId);

    /**
     * 查询行程
     * @param orderNumber
     * @return
     */
    public List<OrderVipchannel> queryVipchannelTripByOrderNumber(Long orderNumber);
    /**
     * 首页-黄金会员-进行中/已使用
     * @param customerId
     * @return
     */
    public List<Vipchannel> selectOrderVipchannelByStatus(Long customerId);

    /**
     * 根据卡号查询vip通道订单
     * */
    public List<OrderVipchannel> selectVipchannel(@Param("customerId") Long customerId, @Param("type") String type);

    public OrderVipchannel queryOrderVipchannel(@Param("orderNumber") Long orderNumber, @Param("customerId") Long customerId);

    /**
     * 定制行程-单程
     * @param customerId
     * @param status
     * @return
     */
    public OrderVipchannel queryItinerary(@Param("customerId") Long customerId, @Param("status") String status);

    public OrderVipchannel selectItinerary(Long ordervipchannelId);
    /**
     * 订单号查数据
     * */
    public OrderVipchannel queryByOrderNumber(Long orderNumber);

    /**
     * 修改VIP通道订单

     *
     * @param orderVipchannel VIP通道订单

     * @return 结果
     */
    public int updateByOrderNumber(OrderVipchannel orderVipchannel);

    /**
     * 条件查询vip通道订单列表
     * */
    public List<OrderVipchannel> orderVipchannelList(VipchannelOrederParameterVo vipchannelOrederParameterVo);

    /**
     * id查数据
     * */
    public OrderVipchannel selectVipchannelOrederListDetailsVo(Long ordervipchannelId);

    /**
     * VIP通道退单
     * */
    public int chargebackVipchannel(Long ordervipchannelId);

    /**
     * 订单号查数据
     * */
    public OrderVipchannel vipchannelOrederListDetailsVo(String orderNum);
}
